<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标1</title>
</head>
<body>
<script type="text/javascript">
function copyText(n)
{
document.getElementById("num"+n).innerText =parseInt(document.getElementById("num"+n).innerText)  + 1;
}
</script>
<h1 id="num1" align="center">0</h1>
<div  align="center">
<button id="but1" type="button" onclick="copyText(1)">按钮1点击数字+1</button>
</div>

<h1 id="num2" align="center">0</h1>
<div  align="center">
<button id="but2" type="button" onclick="copyText(2)">按钮2点击数字+1</button>
</div>

<h1 id="num3" align="center">0</h1>
<div  align="center">
<button id="but3" type="button" onclick="copyText(3)">按钮3点击数字+1</button>
</div>

</body>
</html>